import pytest
import logging

logger = logging.getLogger(__name__)


class TestCase:
    def setup_class(self):
        print("\nclass级别setup")

    def teardown_class(self):
        print("class级别teardown")

    def setup_method(self):
        print("方法级别setup")

    def teardown_method(self):
        print("\n方法级别teardown")

    def setup(self):
        print("普通类级别setup")

    def teardown(self):
        print("\n普通类级别teardown")

    @pytest.mark.temp
    @pytest.mark.cc
    def test_case01(self):
        print("测试用例case01")
        logger.info("测试用例case01")
        assert 1 == 4

    @pytest.mark.smoke
    def test_case02(self):
        logger.info("测试用例case01")
        print("测试用例case02")
        assert 1 == 1
